//package com.chj.config;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.boot.autoconfigure.security.SecurityProperties;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.annotation.Order;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//
//@Configuration
//@EnableWebSecurity
//@Order(SecurityProperties.ACCESS_OVERRIDE_ORDER)
//public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
//
//	protected static Logger logger = LoggerFactory.getLogger(WebSecurityConfig.class);
//
//	@Override
//	protected void configure(HttpSecurity http) throws Exception {
//		logger.info("********** WebSecurityConfig.configure() **********");
//		http.csrf().disable();
//		http.authorizeRequests().antMatchers("/api/**").permitAll().anyRequest().authenticated();
//		http.formLogin();
//		http.httpBasic().disable();
//	}
//}
